package by.android.khan.content;

import java.util.List;

import org.json.JSONObject;

import by.android.khan.content.bo.Playlist;
import by.android.khan.task.ListPlaylistTask;
import by.android.khan.task.common.ParamCallback;

public class ContentManager {
	
private static ContentManager instance;
	
	public static final String PLAYLISTS_URL = "https://www.khanacademy.org/api/v1/playlists";
	public static final String EXERCISES_URL = "https://www.khanacademy.org/api/v1/exercises";
	
	private ContentManager() {
		
	}
	
	public static ContentManager getInstance() {
		if (instance == null) {
			instance = new ContentManager();
		}
		return instance;
	}
	
	public void getPlaylists(final ParamCallback<List<Playlist>> paramCallback) {
		new ListPlaylistTask(paramCallback).start(PLAYLISTS_URL);
	}

}
